package edu.sctu.practice.class02.hujie.cgs.day20151105practice;

/**
 * Created by hj on 2015/11/5.
 */
public abstract class Learning {
    public void process() {
        openComputer();
        learn();
        closeComputer();
    }

    public String openComputer() {
        System.out.println("打开台式机");
        return null;
    }
//抽象方法
    public abstract String learn();

    public String closeComputer() {
        System.out.println("关闭台式机");
        return null;
    }
}
